<template>
  <div class="box">
    <el-row>
      <el-col>
        <el-carousel :interval="5000" arrow="always" height="950px">
          <el-carousel-item v-for="item in photoList" :key="item">
            <img :src="item" alt="" class="img" />
          </el-carousel-item>
        </el-carousel>
        <!-- 过渡 -->
        <div class="transition" ref="div">
          <i class="el-icon-s-promotion"></i>
          <h2 class="title">爱中国爱广州共愿中国梦</h2>
        </div>
        <el-row :gutter="10" class="inputsearch">
          <el-col :span="12">
            <div class="div-input-center">
              <div class="text-input">
                <input type="text" v-model="inputList" />
                <a href="#" title="语音搜索"><i class="el-icon-microphone"></i></a>
                <a href="#" title="搜索网页"><i class="el-icon-search"></i></a>
              </div>
            </div>
          </el-col>
        </el-row>
        <el-row class="introduce" type="flex">
          <el-col class="left">
            <p class="title">IKUN房产</p>
            <p class="aside">精雕细琢，呈现世界级品质</p>
            <p class="text">
              Ikun房产位于广州天河区吉山街道，由两栋40层和两栋44层的豪华公寓和一座高级江景会所构成，面积在434～1206平方米，共220套。是按照别墅尺度进行规划设计的高档公寓，其中A幢D幢为一层一户，平层面积约为597平方米，复式面积约为824-986㎡；B幢与C幢为一层两户，单套平层面积约为435平方米，复式面积约为605-1206㎡；目前，A幢及C幢在售，B幢与D幢出租。
            </p>
            <br />
            <p class="text">作为珠村核心区的国际大宅，Ikun房产拥有一线江景、正对外滩，拥揽广州地标性的景观建筑；选用世界级的建材设施、配置和周全的安保系统等，代言世界级的梦幻生活范本。</p>
          </el-col>
          <el-col class="right">
            <img src="http://img601.yun300.cn/repository/image/7b00ddee-bc3b-4e58-8b5f-12aacb95e847.jpg?tenantId=215997&viewType=1&k=1642041118000" alt="" />
          </el-col>
        </el-row>
      </el-col>
    </el-row>
    <!-- 底部图片 -->
    <p class="foottitle">Ikun画语</p>
    <el-row class="foot" type="flex" justify="space-around">
      <el-col :span="6" class="el-col">
        <img src="http://www.tomson-riviera.com/repository/image/74e47f00-f0f9-4e0b-8cc4-d6c7b5653e0a.jpg" alt="" class="photo" />
        <p>七夕</p>
      </el-col>
      <el-col :span="6" class="el-col">
        <img src="http://www.tomson-riviera.com/repository/image/2844e25b-a780-4fe6-9790-8ea9b77fe627.jpg" alt="" class="photo" />
        <p>夏至</p>
      </el-col>
      <el-col :span="6" class="el-col">
        <img src="http://www.tomson-riviera.com/repository/image/d50b1a2a-224e-4154-b5ae-962cb184e4e7.jpg" alt="" class="photo" />
        <p>立秋</p>
      </el-col>
      <el-col :span="6" class="el-col">
        <img src="http://www.tomson-riviera.com/repository/image/f15aa6a0-eb23-4462-b43e-cab526eeabd8.jpg" alt="" class="photo" />
        <p>大暑</p>
      </el-col>
    </el-row>
  </div>
</template>

<script>
// import pop from './pop.vue'
export default {
  data() {
    return {
      inputList: '',
      photoList: ['http://www.tomson-riviera.com/repository/image/124abc55-f277-4ec7-8fe8-78fa08a32082.jpg', 'http://www.tomson-riviera.com/repository/image/4b083b58-6532-44a3-ab9c-da22cca49f6a.jpg']
    }
  },
  created() {},
  mounted() {
    setTimeout(() => {
      // 过度
      this.$nextTick(() => {
        this.$refs.div.style.transform = 'translateX(500%)'
      })
    }, 500)
  },
  methods: {}
}
</script>

<style scoped lang="less">
.transition {
  .title {
    font-size: 30px;
    line-height: 80px;
  }
}
.box {
  width: 100%;
  position: relative;
}
.transition {
  transition: 1s;
  height: 50px;
  width: 270px;
  text-align: center;
  // line-height: 50px;
  display: flex;
  justify-content: space-between;
  position: absolute;
  z-index: 2;
  top: 100px;
  left: -300px;
  //  display: none;
  h2 {
    color: aliceblue;
    font-size: 20px;
  }
}

// 中间介绍部分
.introduce {
  margin-top: 30px;
  height: 500px;
  // 左边
  .left {
    // 标题
    .title {
      font-weight: 400;
      font-size: 20px;
      color: #000;
      margin-bottom: 5px;
    }
    .aside {
      margin-bottom: 20px;
      color: #c3c3c3;
      font-size: 16px;
    }
    // 内容
    .text {
      color: #595959;
      letter-spacing: 3px;
      font-size: 15px;
      text-indent: 2rem;
      line-height: 2;
    }
  }
}

// 底部标题
.foottitle {
  // flex-wrap: 200;
  // flex-wrap: 36px;
  font-family: 'Microsoft JhengHei';
  font-size: 36px;
  margin-bottom: 30px;
}
// 底部图片
.foot {
  margin-bottom: 50px;
  .el-col {
    width: 250px;
    // 图片过渡效果
    position: relative;
    margin-bottom: 10px;
    overflow: hidden;
    &:hover::before {
      transition: 500ms;
      transform: skew(-40deg) translateX(140%);
    }
    &::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-image: linear-gradient(to right bottom, transparent, rgba(255, 255, 255, 0.5), transparent);
      transform: skew(-40deg) translateX(-170%);
    }
  }
  // 图片底部文字
  p {
    width: 300px;
    font-size: 18px;
    font-weight: 500;
    margin-top: -5px;
    line-height: 50px;
    text-align: center;
    color: aliceblue;
    background-color: rgb(231, 173, 65);
  }
  // 图片
  .photo {
    width: 300px;
    height: 444px;
    // margin-left: 20px;
  }
}

// 搜索
.inputsearch {
  position: absolute;
  top: 3%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 15;
  height: 50px;
}

.img {
  // width: 100%;
  // width: max-content;
  position: relative;
  width: 100%;
  height: 100%;
}

.div-input-center {
  width: 450px;
  height: 100%;
  margin: 120px auto;
}
.text-input {
  width: 400px;
  height: 50px;
  display: flex;
  background-color: rgb(235, 232, 232);
  opacity: 0.5;
  border-radius: 22px;
  padding: 0 15px;
  align-items: center;
}
input {
  flex: 1;
  border-radius: 20px;
  background-color: rgb(235, 232, 232);
  width: 90%;
  height: 50px;
  border: 0;
  outline: none;
  /* padding-left: 15px;/ */
}
i {
  width: 30px;
  font-weight: 700;
  font-size: 25px;
  color: #007daa;
}
</style>
